Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Protocol cleanup #374

Merged
merged 7 commits into from
Mar 20, 2024
Merged

Protocol cleanup #374

merged 7 commits into from
Mar 20, 2024

Conversation

Mallets
Copy link
Member

@Mallets Mallets commented Mar 19, 2024

Remove unused or unimplemented behaviour.
Aligned with https://github.com/eclipse-zenoh/zenoh/tree/protocol_changes.

@@ -14,19 +14,9 @@
#include "zenoh-pico/net/subscribe.h"

#if Z_FEATURE_SUBSCRIPTION == 1
_z_subinfo_t _z_subinfo_push_default(void) {
_z_subinfo_t _z_subinfo_default(void) {

Check warning

Code scanning / Cppcheck (reported by Codacy)

misra violation 804 with no text in the supplied rule-texts-file Warning

misra violation 804 with no text in the supplied rule-texts-file
@@ -102,7 +102,7 @@
return -1;
}

printf("Enter any key to pull data or 'q' to quit...\n");
printf("Enter any key to get data or 'q' to quit...\n");

Check notice

Code scanning / Cppcheck (reported by Codacy)

MISRA 17.7 rule Note

MISRA 17.7 rule

z_undeclare_pull_subscriber(z_move(sub));
// z_undeclare_pull_subscriber(z_move(sub));
printf("Pull Subscriber not supported... exiting\n");

Check notice

Code scanning / Cppcheck (reported by Codacy)

MISRA 17.7 rule Note

MISRA 17.7 rule
examples/zephyr/z_pull.c Fixed Show fixed Hide fixed

z_undeclare_pull_subscriber(z_move(sub));
// z_undeclare_pull_subscriber(z_move(sub));
printf("Pull Subscriber not supported... exiting\n");

Check notice

Code scanning / Cppcheck (reported by Codacy)

MISRA 17.7 rule Note

MISRA 17.7 rule
examples/unix/c99/z_pull.c Dismissed Show dismissed Hide dismissed
@@ -67,7 +67,7 @@
return -1;
}

printf("Enter any key to pull data or 'q' to quit...\n");
printf("Enter any key to get data or 'q' to quit...\n");

Check notice

Code scanning / Cppcheck (reported by Codacy)

MISRA 17.7 rule Note

MISRA 17.7 rule
examples/unix/c99/z_get.c Dismissed Show dismissed Hide dismissed
@eclipse-zenoh-bot
Copy link
Contributor

@Mallets If this pull request contains a bugfix or a new feature, then please consider using Closes #ISSUE-NUMBER syntax to link it to an issue.

@Mallets
Copy link
Member Author

Mallets commented Mar 19, 2024

@jean-roland could you please review it?


z_undeclare_pull_subscriber(z_move(sub));
// z_undeclare_pull_subscriber(z_move(sub));
printf("Pull Subscriber not supported... exiting\n");

Check notice

Code scanning / Cppcheck (reported by Codacy)

MISRA 17.7 rule Note

MISRA 17.7 rule
@jean-roland
Copy link
Contributor

CI fails in the api alignment test:

2024-03-19T15:34:53.6302232Z 2: assert_eq failed: l=2, r=3
2024-03-19T15:34:53.6304152Z 2: z_api_alignment_test: /home/runner/work/zenoh-pico/zenoh-pico/tests/z_api_alignment_test.c:346: main: Assertion `false' failed.

@@ -380,9 +356,12 @@
assert(!z_check(_ret_pub));
printf("Ok\n");

printf("Undeclaring Pull Subscriber...");
_ret_int8 = z_undeclare_pull_subscriber(z_move(_ret_psub));
sleep(SLEEP);

Check warning

Code scanning / Cppcheck (reported by Codacy)

sleep is MT-unsafe Warning test

sleep is MT-unsafe
_ret_int8 = z_undeclare_pull_subscriber(z_move(_ret_psub));
sleep(SLEEP);

printf("Undeclaring Subscriber...");

Check notice

Code scanning / Cppcheck (reported by Codacy)

MISRA 17.7 rule Note test

MISRA 17.7 rule
@Mallets Mallets merged commit 9bd061c into protocol_changes Mar 20, 2024
60 of 95 checks passed
@Mallets Mallets deleted the protocol_cleanup branch March 20, 2024 08:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: No status
Development

Successfully merging this pull request may close these issues.

3 participants